﻿@using System.ComponentModel.DataAnnotations;

<Form Model="@model"
      LabelColSpan="8"
      WrapperColSpan="16">
    <FormItem>
        <LabelTemplate>
            <label class="ant-form-item-required" for="username">
                <Tooltip Title="@("Enter your username")">Username</Tooltip>
            </label>
        </LabelTemplate>
        <ChildContent>
            <Input Id="username" @bind-Value="@context.Username" />
        </ChildContent>
    </FormItem>
</Form>

@code{
    public class Model
    {
        [Required]
        public string Username { get; set; }
    }

    private Model model = new Model();
}